{extend name="base" /}
{block name="title"}公众号{/block}

{block name="main"}
<div class="zbd-main">
	<div class="page">
		<div class="box">
		    <div class="box-content">
		    	<a href="/platform?type=" class="pla_type {$param['type'] == '' ? 'plted' : ''}">全部分类</a>
		    	{foreach $arrs['pla_type'] as $key => $val}
		    	<a href="/platform?type={$val['type']}" class="pla_type {$val['type'] == $param['type'] ? 'plted' : ''}">{$val['type']}</a>
		    	{/foreach}
		    </div>
		</div>

		<div class="mt20">
			<div class="box">
	        	<div class="box-title">
					<div class="left small black"><i class="icon ice-service"></i> {$param['type']} 公众号大全</div>
				</div>
			    <div class="box-content">
			    	<div class="row">
			    		{foreach $arrs['list']['rows'] as $key => $val}
			    		<div class="w3 ws4">
			    			<div class="platform-item">
			    				<div class="platform-pic">
			    					<img class="platform-img" src="{$val['avatar']}" alt="{$val['name']}">
			    				</div>
			    				<div class="platform-mani">
			    					<div class="el">
			    						<a href="/platform/info?id={$val['id']}" class="platform-title" title="{$val['name']}">{$val['name']}</a>
			        					<!-- <img class="icon-qrcode img-view" src="{$val['qrcode']}"> -->
			        					<!-- <i class="icon ice-erweima icon-qrcode gray2"></i> -->
			    					</div>
			    					<p class="small gray2 platform-desc">{$val['content']}</p>
			    				</div>
			    				<div class="platform-desc1">
			    					<span class="layui-badge {$val['auth'] == '订阅号' ? 'bg-green' : 'bg-blue'}">{$val['auth']}</span>

			    					<div class="platform-views red">
			        					<img class="icon-svg" src="/iceui/img/hot.svg">
			        					{$val['views']}
			        				</div>

			    				</div>
			    			</div>
					    </div>
					    {/foreach}
			    	</div>
			    	<div class="fengye">
			    		<div class="paging" id="paging-1"></div>
			    	</div>
			    </div>
			</div>
		</div>
	</div>
</div>
{/block}

{block name="js"}
<script>
	ice.paging({
		id: 'paging-1',
		count: {$arrs['list']['total']},
		size: {$arrs['list']['pageSize']},
		page: {$arrs['list']['page']},
		callback(num) {
			var t = ice.getUrl('type');
			var type = t ? t : '';
			window.location.href = '/platform?page=' + num + '&type=' + type;
		}
	})
</script>
{/block}